//
//  ChooseView.m
//  WE
//
//  Created by apple on 15/12/2.
//  Copyright © 2015年 UNOHACHA. All rights reserved.
//

#import "ChooseView.h"
#import "Size.h"

@implementation ChooseView

- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        self.backgroundColor = [UIColor whiteColor];
        self.button = [UIButton buttonWithType:UIButtonTypeCustom];
        self.button.frame = CGRectMake(0, 0, self.frame.size.width, self.frame.size.height);
        self.button.backgroundColor = [UIColor whiteColor];
        [self addSubview:self.button];
        
        self.label = [[UILabel alloc] initWithFrame:CGRectMake(10, 10, 40, 30)];
        self.label.font = FONT(14);
        self.label.text = @"必填";
        self.label.textColor = GRAYCOLOR;
        [self addSubview:self.label];
        float arrow_h = 0.36 * 50 ,arrow_w = arrow_h * 0.57 ,arrow_y = (50 - arrow_h)/2  , arrow_x = WindowWidth/4*3 - 30;
        UIImageView *imageV = [[UIImageView alloc] initWithFrame:CGRectMake(arrow_x, arrow_y, arrow_w , arrow_h)];
        imageV.image = [UIImage imageNamed:@"ico_arrow"];
        [self addSubview:imageV];
        
    }
    return self;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
